import service from '@/utils/request'

// @Tags GameContact
// @Summary 创建GameContact
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameContact true "创建GameContact"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameContact/createGameContact [post]
export const createGameContact = (data) => {
  return service({
    url: '/gameContact/createGameContact',
    method: 'post',
    data
  })
}

// @Tags GameContact
// @Summary 删除GameContact
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameContact true "删除GameContact"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameContact/deleteGameContact [delete]
export const deleteGameContact = (data) => {
  return service({
    url: '/gameContact/deleteGameContact',
    method: 'delete',
    data
  })
}

// @Tags GameContact
// @Summary 删除GameContact
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除GameContact"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameContact/deleteGameContact [delete]
export const deleteGameContactByIds = (data) => {
  return service({
    url: '/gameContact/deleteGameContactByIds',
    method: 'delete',
    data
  })
}

// @Tags GameContact
// @Summary 更新GameContact
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameContact true "更新GameContact"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameContact/updateGameContact [put]
export const updateGameContact = (data) => {
  return service({
    url: '/gameContact/updateGameContact',
    method: 'put',
    data
  })
}

// @Tags GameContact
// @Summary 用id查询GameContact
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameContact true "用id查询GameContact"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameContact/findGameContact [get]
export const findGameContact = (params) => {
  return service({
    url: '/gameContact/findGameContact',
    method: 'get',
    params
  })
}

// @Tags GameContact
// @Summary 分页获取GameContact列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取GameContact列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameContact/getGameContactList [get]
export const getGameContactList = (params) => {
  return service({
    url: '/gameContact/getGameContactList',
    method: 'get',
    params
  })
}
